{"ast":null,"code":"import { generate } from '@ant-design/colors';\nimport genControlHeight from '../shared/genControlHeight';\nimport genSizeMapToken from '../shared/genSizeMapToken';\nimport { defaultPresetColors } from '../seed';\nimport genColorMapToken from '../shared/genColorMapToken';\nimport genCommonMapToken from '../shared/genCommonMapToken';\nimport { generateColorPalettes, generateNeutralColorPalettes } from './colors';\nimport genFontMapToken from '../shared/genFontMapToken';\nexport default function derivative(token) {\n  const colorPalettes = Object.keys(defaultPresetColors).map(colorKey => {\n    const colors = generate(token[colorKey]);\n    return new Array(10).fill(1).reduce((prev, _, i) => {\n      prev[`${colorKey}-${i + 1}`] = colors[i];\n      return prev;\n    }, {});\n  }).reduce((prev, cur) => {\n    prev = Object.assign(Object.assign({}, prev), cur);\n    return prev;\n  }, {});\n  return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, token), colorPalettes), genColorMapToken(token, {\n    generateColorPalettes,\n    generateNeutralColorPalettes\n  })), genFontMapToken(token.fontSize)), genSizeMapToken(token)), genControlHeight(token)), genCommonMapToken(token));\n}","map":{"version":3,"names":["generate","genControlHeight","genSizeMapToken","defaultPresetColors","genColorMapToken","genCommonMapToken","generateColorPalettes","generateNeutralColorPalettes","genFontMapToken","derivative","token","colorPalettes","Object","keys","map","colorKey","colors","Array","fill","reduce","prev","_","i","cur","assign","fontSize"],"sources":["/data/messenger.client/node_modules/antd/es/theme/themes/default/index.js"],"sourcesContent":["import { generate } from '@ant-design/colors';\nimport genControlHeight from '../shared/genControlHeight';\nimport genSizeMapToken from '../shared/genSizeMapToken';\nimport { defaultPresetColors } from '../seed';\nimport genColorMapToken from '../shared/genColorMapToken';\nimport genCommonMapToken from '../shared/genCommonMapToken';\nimport { generateColorPalettes, generateNeutralColorPalettes } from './colors';\nimport genFontMapToken from '../shared/genFontMapToken';\nexport default function derivative(token) {\n  const colorPalettes = Object.keys(defaultPresetColors).map(colorKey => {\n    const colors = generate(token[colorKey]);\n    return new Array(10).fill(1).reduce((prev, _, i) => {\n      prev[`${colorKey}-${i + 1}`] = colors[i];\n      return prev;\n    }, {});\n  }).reduce((prev, cur) => {\n    prev = Object.assign(Object.assign({}, prev), cur);\n    return prev;\n  }, {});\n  return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, token), colorPalettes), genColorMapToken(token, {\n    generateColorPalettes,\n    generateNeutralColorPalettes\n  })), genFontMapToken(token.fontSize)), genSizeMapToken(token)), genControlHeight(token)), genCommonMapToken(token));\n}"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,oBAAoB;AAC7C,OAAOC,gBAAgB,MAAM,4BAA4B;AACzD,OAAOC,eAAe,MAAM,2BAA2B;AACvD,SAASC,mBAAmB,QAAQ,SAAS;AAC7C,OAAOC,gBAAgB,MAAM,4BAA4B;AACzD,OAAOC,iBAAiB,MAAM,6BAA6B;AAC3D,SAASC,qBAAqB,EAAEC,4BAA4B,QAAQ,UAAU;AAC9E,OAAOC,eAAe,MAAM,2BAA2B;AACvD,eAAe,SAASC,UAAU,CAACC,KAAK,EAAE;EACxC,MAAMC,aAAa,GAAGC,MAAM,CAACC,IAAI,CAACV,mBAAmB,CAAC,CAACW,GAAG,CAACC,QAAQ,IAAI;IACrE,MAAMC,MAAM,GAAGhB,QAAQ,CAACU,KAAK,CAACK,QAAQ,CAAC,CAAC;IACxC,OAAO,IAAIE,KAAK,CAAC,EAAE,CAAC,CAACC,IAAI,CAAC,CAAC,CAAC,CAACC,MAAM,CAAC,CAACC,IAAI,EAAEC,CAAC,EAAEC,CAAC,KAAK;MAClDF,IAAI,CAAE,GAAEL,QAAS,IAAGO,CAAC,GAAG,CAAE,EAAC,CAAC,GAAGN,MAAM,CAACM,CAAC,CAAC;MACxC,OAAOF,IAAI;IACb,CAAC,EAAE,CAAC,CAAC,CAAC;EACR,CAAC,CAAC,CAACD,MAAM,CAAC,CAACC,IAAI,EAAEG,GAAG,KAAK;IACvBH,IAAI,GAAGR,MAAM,CAACY,MAAM,CAACZ,M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